﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ContactPersonDtls.ascx.cs" Inherits="Workflow.Alerts.Sublayouts.ProfileSettings.ContactPersonDtls" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxtoolkit" %>

<h2 class="settingsTitle">Mijn profiel</h2>
<div class="formcontainer">
    <asp:Label ID="lblTitle" runat="server" />

    <asp:Label ID="lblAccountInfo" runat="server" Text="Accountinstellingen" visible="false" />

    <div id="login" runat="server" class="boxRow">
        <asp:Label ID="lblLogin" AssociatedControlID="txtLogin" runat="server" Text="Loginnaam" CssClass="settingsLabel"/>
        <ajaxtoolkit:TextBoxWatermarkExtender ID="watermark5" runat="server" TargetControlID="txtLogin" WatermarkText="Verplicht veld" WatermarkCssClass="styledInput styledInput635 required"></ajaxtoolkit:TextBoxWatermarkExtender>
        <asp:TextBox ID="txtLogin" runat="server" CssClass="styledInput styledInput635" />
        <asp:RequiredFieldValidator ID="rfvLogin" runat="server" ErrorMessage="" ControlToValidate="txtLogin" Display="Dynamic" CssClass="valMessage" />
        <asp:Label ID="lblLoginValidator" runat="server" Text="Gebruik aub een andere loginnaam, de ingevoerde loginnaam is al in gebruik." CssClass="valMessage"
                    Visible="false" />
        <div class="clear"></div>
    </div>

    <div id="password" runat="server" class="boxRow">
        <asp:Label ID="lblPassword" AssociatedControlID="txtPassword" runat="server" Text="Wachtwoord" CssClass="settingsLabel"/>
        <asp:TextBox ID="txtPassword" runat="server" TextMode="Password" CssClass="styledInput styledInput635" />
        <asp:RequiredFieldValidator ID="rvfPassword" runat="server" ErrorMessage="" ControlToValidate="txtPassword" Display="Dynamic" CssClass="valMessage" />
        <div class="clear"></div>
    </div>

    <div id="firstname" runat="server" visible="false" class="boxRow">
        <asp:Label ID="lblFirstName" AssociatedControlID="txtFirstName" runat="server" Text="Voornaam" CssClass="settingsLabel"/>
        <ajaxtoolkit:TextBoxWatermarkExtender ID="watermark1" runat="server" TargetControlID="txtFirstName" WatermarkText="Verplicht veld" WatermarkCssClass="styledInput styledInput635 required"></ajaxtoolkit:TextBoxWatermarkExtender>
        <asp:TextBox ID="txtFirstName" runat="server" CssClass="styledInput styledInput635" />
        <asp:RequiredFieldValidator ID="rfvFirstName" runat="server" ErrorMessage="" ControlToValidate="txtFirstName" Display="Dynamic" CssClass="valMessage" />
        <%--<asp:RegularExpressionValidator ID="reFirstName" runat="server" ErrorMessage="Alleen letters." ControlToValidate="txtFirstName" ValidationExpression="^[A-Za-z \-\'\.]+$" Display="Dynamic" CssClass="valMessage"> </asp:RegularExpressionValidator>--%>
        <div class="clear"></div>
    </div>
    
    <div id="lastname" runat="server" visible="false" class="boxRow">
        <asp:Label ID="lblLastName" AssociatedControlID="txtLastName" runat="server" Text="Achternaam" CssClass="settingsLabel"/>
        <ajaxtoolkit:TextBoxWatermarkExtender ID="watermark2" runat="server" TargetControlID="txtLastName" WatermarkText="Verplicht veld" WatermarkCssClass="styledInput styledInput635 required"></ajaxtoolkit:TextBoxWatermarkExtender>
        <asp:TextBox ID="txtLastName" runat="server" CssClass="styledInput styledInput635" />
        <asp:RequiredFieldValidator ID="rfvLastName" runat="server" ErrorMessage="" ControlToValidate="txtLastName" Display="Dynamic" CssClass="valMessage" />
        <%--<asp:RegularExpressionValidator ID="reLastName" runat="server" ErrorMessage="Alleen letters." ControlToValidate="txtLastName" ValidationExpression="^[A-Za-z \-\'\.]+$" Display="Dynamic" CssClass="valMessage"> </asp:RegularExpressionValidator>--%>
        <div class="clear"></div>
    </div>

    <div runat="server" id="email" visible="false" class="boxRow">
        <asp:Label ID="lblEmail" AssociatedControlID="txtEmail" runat="server" Text="E-mailadres" CssClass="settingsLabel"/>
        <ajaxtoolkit:TextBoxWatermarkExtender ID="watermark3" runat="server" TargetControlID="txtEmail" WatermarkText="Verplicht veld" WatermarkCssClass="styledInput styledInput635 required"></ajaxtoolkit:TextBoxWatermarkExtender>
        <asp:TextBox ID="txtEmail" runat="server" CssClass="styledInput styledInput635" />
        <asp:RequiredFieldValidator ID="rfvEmail" runat="server" ErrorMessage="" ControlToValidate="txtEmail" Display="Dynamic" CssClass="valMessage" />
        <asp:RegularExpressionValidator ID="reEmail" runat="server" ErrorMessage="Verkeerd e-mail formaat." ControlToValidate="txtEmail" Display="Dynamic" CssClass="valMessage" ValidationExpression="\b[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,4}\b"> </asp:RegularExpressionValidator>
        <asp:Label ID="lblEmailValidator" runat="server" Text="Gebruik aub een ander mailadres, het ingevoerde mailadres is al in gebruik."
                    Visible="false" />
        <div class="clear"></div>
    </div>

    <div id="phone1" runat="server" visible="false" class="boxRow">
        <asp:Label ID="lblPhone1" AssociatedControlID="txtPhone1" runat="server" Text="Telefoonnummer" CssClass="settingsLabel"/>
        <ajaxtoolkit:TextBoxWatermarkExtender ID="watermark4" runat="server" TargetControlID="txtPhone1" WatermarkText="Verplicht veld" WatermarkCssClass="styledInput styledInput635 required"></ajaxtoolkit:TextBoxWatermarkExtender>
        <asp:TextBox ID="txtPhone1" runat="server" CssClass="styledInput styledInput635" />
        <asp:RequiredFieldValidator ID="rfvPhone1" runat="server" ErrorMessage="" ControlToValidate="txtPhone1" Display="Dynamic" CssClass="valMessage" />
        <%--<asp:RegularExpressionValidator ID="rePhone1" runat="server" ErrorMessage="Verkeerd telefoonnummer formaat." ControlToValidate="txtPhone1" Display="Dynamic" CssClass="valMessage" ValidationExpression="\b(\d){10,12}\b"> </asp:RegularExpressionValidator>--%>
        <div class="clear"></div>
    </div>

    <div id="phone2" runat="server" visible="false" class="boxRow">
        <asp:Label ID="lblPhone2" AssociatedControlID="txtPhone2" runat="server" Text="Mobiel nummer" CssClass="settingsLabel"/>
        <asp:TextBox ID="txtPhone2" runat="server" CssClass="styledInput styledInput635" />
        <%--<asp:RegularExpressionValidator ID="rePhone2" runat="server" ErrorMessage="Verkeerd telefoonnummer formaat." ControlToValidate="txtPhone2" Display="Dynamic" CssClass="valMessage" ValidationExpression="\b(\d){10,12}\b"> </asp:RegularExpressionValidator>--%>
        <div class="clear"></div>
    </div>

    <div id="notification" runat="server" visible="false">
        <asp:CheckBox ID="chkNotification" runat="server" Text="Ontvang meldingen" CssClass="radioButton radioButtonSettings"/>
    </div>

    <div id="confirmation" class="toonBevestiging" runat="server" visible="false">
        <asp:CheckBox ID="chkConfirmation" runat="server" Text="Toon bevestigingsscherm" CssClass="radioButton radioButtonSettings"/>
    </div>
    <br />
</div>

<div class="footerButtonContainer">
<asp:Button ID="btnSave" runat="server" CssClass="styledButton styledButton75 floatLeft" Text="Opslaan" 
    onclick="btnSave_Click" />
<asp:Button ID="btnSaveNew" runat="server" CssClass="styledButton styledButton320 floatLeft" 
    Text="Opslaan en nieuw contactpersoon" onclick="btnSaveNew_Click" />
<asp:Button ID="btnCancel" runat="server" CssClass="styledButton styledButton75 floatLeft" Text="Annuleren" 
    onclick="btnCancel_Click" CausesValidation="False" />
</div>
<asp:ValidationSummary ID="ValidationSummary1" runat="server" />

<script type="text/javascript">

	jQuery(document).ready(function(){

		workflow.form.radioButtonCtrl.SetupLabel()

	}); 
</script>